package czopyk.model.analysis.conditions;


public class LoadCondition extends Condition {

	public LoadCondition(double windowSize, WindowType windowType, String centerName) {
		super(windowSize, windowType);
		this.centerName = centerName;
	}

	public final String centerName;

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((centerName == null) ? 0 : centerName.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		LoadCondition other = (LoadCondition) obj;
		if (centerName == null) {
			if (other.centerName != null)
				return false;
		} else if (!centerName.equals(other.centerName))
			return false;
		return true;
	}

}
